﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VonaJobs.DAL.DAO;
using VonaJobs.DAL.Gatway;

namespace VonaJobs.BLL
{
    public class EmployerManager
    {
        EmployerGateway employerGateway = new EmployerGateway();
        public string CreateEmpProfile(Employer employer)
        {
            try
            {
                if (!HasThisEmpProfile(employer))
                {
                 return  employerGateway.CreateEmpProfile(employer);
                }
            }
            catch (Exception)
            {
                
                
            }

            return "";
        }

        private bool HasThisEmpProfile(Employer employer)
        {
            try
            {
              return employerGateway.HasThisEmpProfile(employer);
              
            }
            catch (Exception)
            {
                
                throw;
            }
            
        }
    }
}